.class Lcom/waiqin365/h5/photo/f;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/h5/photo/WqPhotoDelete;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/photo/WqPhotoDelete;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/photo/f;->a:Lcom/waiqin365/h5/photo/WqPhotoDelete;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/h5/photo/f;->a:Lcom/waiqin365/h5/photo/WqPhotoDelete;

    iget-object v1, p0, Lcom/waiqin365/h5/photo/f;->a:Lcom/waiqin365/h5/photo/WqPhotoDelete;

    invoke-static {v1}, Lcom/waiqin365/h5/photo/WqPhotoDelete;->a(Lcom/waiqin365/h5/photo/WqPhotoDelete;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lorg/apache/cordova/CordovaArgs;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/h5/photo/WqPhotoDelete;->a(Lcom/waiqin365/h5/photo/WqPhotoDelete;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/h5/photo/f;->a:Lcom/waiqin365/h5/photo/WqPhotoDelete;

    invoke-static {v0}, Lcom/waiqin365/h5/photo/WqPhotoDelete;->b(Lcom/waiqin365/h5/photo/WqPhotoDelete;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Lorg/json/JSONObject;

    iget-object v1, p0, Lcom/waiqin365/h5/photo/f;->a:Lcom/waiqin365/h5/photo/WqPhotoDelete;

    invoke-static {v1}, Lcom/waiqin365/h5/photo/WqPhotoDelete;->b(Lcom/waiqin365/h5/photo/WqPhotoDelete;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v1, "path"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string/jumbo v1, "path"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {v1}, Ljava/io/File;->delete()Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
